package com.paic.icore.test.demo.javatest;

import com.alibaba.fastjson.JSON;
import easyexcel.entity.Person;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.poi.ss.formula.functions.T;
import org.assertj.core.util.Lists;
import org.assertj.core.util.Sets;

import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * describe:
 *
 * @author huxingjie
 * @date 2019/05/15
 * @since 3.6
 */
public class TetID {

    public static void main(String[] args) {
        List<String> list = Lists.newArrayList("1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
        int i = 0;
        int page = 1;
        int size = 5;
        for (; i < list.size(); i++) {
            if (list.get(i).equals("5")) {
                page = i / 5 + 1;
                break;
            }
        }
        System.out.println(i);
        System.out.println(page);
        Long l1 = 2L;
        Integer i2 = 2;
        System.out.println(l1.equals(i2));
        String s = "1";
        List<String> strings = Arrays.asList(s.split(","));
        System.out.println(JSON.toJSONString(strings));
        Pattern DEVICECODE_PATTERN = Pattern.compile("(\\d{20})");
        String d = "11111111111111111111";
        Matcher matcher = DEVICECODE_PATTERN.matcher(d);
        if (matcher.matches()) {
            System.out.println("dd");
        }
        Person p = Person.builder().name("huxingjie").age(20).build();
        p.setAge(200);
        Integer age1 = p.getAge();
        p.setAge(null);
        System.out.println(age1);

    }
}

    